# Makefile for GNU shell utilities documentation.
# Do not use this makefile directly, but only from `../Makefile'.
# Copyright (C) 1991 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

SHELL = /bin/sh

srcdir = @srcdir@/man
@VPATH@

# Files to install on all systems
MANFILES1 = gbasename.1 gdate.1 gdirname.1 genv.1 gexpr.1 ggroups.1 \
gid.1 glogname.1 gpathchk.1 gprintenv.1 gprintf.1 gsleep.1 gtee.1 gtest.1 \
gtty.1 gwhoami.1 gyes.1
# Files to maybe install.
MANFILES2 = gnice.1 gnohup.1 gstty.1 guname.1

# Files to install.
MANFILES = $(MANFILES1) @MAN@

DISTFILES = Makefile.in $(MANFILES1) $(MANFILES2)

all:
.PHONY: all

install: all
	for f in $(MANFILES); do \
	if test -f $$f; then src=.; else src=$(srcdir); fi; \
	$(INSTALLDATA) $$src/$$f $(mandir)/`basename $$f 1`$(manext); \
	done
.PHONY: install

tags:
.PHONY: tags

TAGS:
.PHONY: TAGS

clean:
.PHONY: clean

distclean: clean
	rm -f Makefile
.PHONY: distclean

realclean: distclean
.PHONY: realclean

dist:
	ln $(DISTFILES) ../`cat ../.fname`/man
.PHONY: dist
